﻿#region Includes
using System;
using System.Runtime.InteropServices;
#endregion

namespace GingerGL.Drawing.BSP
{
    //------------------------------------------------------------//
    /// <summary>
    /// Directory entry in header
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
    public struct DirectoryEntry
    {
        //--------------------------------------------------------//
        #region Variables
        /// <summary>
        /// Data Structure Size In Byte
        /// </summary>
        static public readonly int SizeInBytes = sizeof(int) * 2;
        /// <summary>
        /// Data Offset
        /// </summary>
        public Int32 Offset;
        /// <summary>
        /// Data Length in Bytes
        /// </summary>
        public Int32 Length;
        #endregion
        //--------------------------------------------------------//
    }
    //------------------------------------------------------------//
}
